/*
 * clog.h
 *
 *  Created on: 2012-7-22
 *      Author: lin
 */

#ifndef CLOG_H_
#define CLOG_H_

#include "def/defs.h"
__BEGIN_DECLS

#include <stdarg.h>
#include <string.h>

typedef struct clog_category clog_category_t;

int clog_load(const char *confpath);
int clog_reload(const char *confpath);
void clog_destory(void);

clog_category_t *clog_get_category(const char *cname);

void clog(clog_category_t * category, const char *fname, uint16_t fnamelen,
        const char *func, uint16_t funclen, uint32_t line, uint16_t level,
        const char *format, ...);

__END_DECLS
#endif /* CLOG_H_ */
